package com.example.hotelback.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Admin {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String password;
    @TableField("isRoot")
    private Integer isRoot;
    @TableField(exist = false) // 数据库中原本不存在的字段，不用映射
    private String token;
}
